<template>
  <div class="info-box">
    <div class="header">
      {{ title }}
      <div>
        <slot name="right"> </slot>
      </div>
    </div>
    <div class="body">
      <slot name="body"></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: String,
    headerTextColor: {
      type: String,
      default: "#1080F0",
    },
  },
};
</script>

<style lang="scss" scoped>
.info-box {
  background-color: #ffffff;
  border-radius: 4px;
}

.header {
  color: #333333;
  font-size: 16px;
  font-weight: 600;
  align-items: center;
  padding: 15px 0 15px 10px;
  margin: 0 16px;
  position: relative;

  /* &::before {
    content: '';
    width: 2px;
    height: 21px;
    background-color: #1080f0;
    display: inline-block;
    position: absolute;
    left: 0;
    top: 16px;
  } */

  & > div {
    position: absolute;
    right: 0;
    top: 8px;
  }
}
.body {
  height: calc(100% - 86px);
  margin: 15px;
}
</style>
